<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/1/5
 * Time: 12:31
 */

namespace App\Http\Traits;


use Illuminate\Http\Request;

trait MarkTrait
{
    use BaseTrait;

    // 咖啡馆标签名称
    protected $name;
    // 是否是标签菜单
    protected $is_menu;
    // 分页大小
    protected $limit;
    // 标签ID
    protected $mark_id;
    // 城市编码
    protected $citycode;
    // 是否是通用标签
    protected $is_common;
    // 显示个数
    protected $show_num;

    public function __construct(Request $request)
    {
        $this->name = $request->input('name', '');
        $this->is_menu = $request->input('is_menu', 0);
        $this->limit = $request->input('limit', 0);
        $this->mark_id = $request->input('mark_id', 0);
        $this->citycode = $request->input('citycode', 0);
        $this->is_common = $request->input('is_common', 0);
        $this->show_num = $request->input('show_num', 0);
    }
}